package view;

import controller.Controller;

import javax.swing.*;

public class GameCountJFrame extends JFrame {
    public GameCountJPanel gameCountJPanel;
    private Controller controller;
    public GameCountJFrame(Controller controller){
        this.controller=controller;
        setTitle("斗地主结算");
        setResizable(false);
        setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
        gameCountJPanel=new GameCountJPanel(controller);
        add(gameCountJPanel);
        pack();
        setLocationRelativeTo(null);
        gameCountJPanel.setVisible(true);
    }

}
